const CracoLessPlugin = require('craco-less')
const path = require("path")
const resolve = pathName => path.join(__dirname, pathName)

module.exports = {
    plugins: [{
        plugin: CracoLessPlugin,
        options: {
            lessLoaderOptions: {
                lessOptions: {
                    modifyVars: {
                        '@primary-color': 'crimson'
                    },
                    javascriptEnabled: true,
                },
            },
        },
    }, ],

    webpack: {
        alias: {
            '@': resolve('src'),
            '@assets': resolve('src/assets'),
            '@pages': resolve('src/pages'),
            '@components': resolve('src/components'),
        }
    }

}